#include <stdio.h>

int main()
{
    int c;
    int ns=0, nt=0, nl=0;
    while ((c = getchar()) != EOF)
    {
        if (c == ' ')
            ++ns;
        else if (c == '\t')
            ++nt;
        else if (c == '\n')
            ++nl;
    }
    printf("%d %d %d", ns, nt, nl);
    return 0;
}

